/*
* ECARX Technology Limited is the owner of the copyright and the trade secret of this software.
* Without permission, no one has the right to obtain, disclose or use this software in any way.
*/

package ecarx.xsf.notificationcenter;

import android.app.Service;
import android.content.Intent;
import android.os.IBinder;
import android.util.Log;

import ecarx.xsf.notificationcenter.binders.EASLCService;

public class NotificationService extends Service {

    private static final String TAG = "NotificationService";
    private static final String ACTION_EAS_LAUNCHER_CONTROLLER = "android.intent.action.EAS_NOTIFICATION_SERVICE";

    private final IBinder mIEASLCService = new EASLCService();

    @Override
    public int onStartCommand(Intent intent, int flags, int startId) {
        Log.d(TAG,"onStartCommand");
        return super.onStartCommand(intent, flags, startId);
    }

    @Override
    public IBinder onBind(Intent intent) {
        if (ACTION_EAS_LAUNCHER_CONTROLLER.equals(intent.getAction())) {
            Log.d(TAG, "onBind eas lc Service");
            return mIEASLCService;
        }
        return null;
    }
}